/**
 * Created by user on 2018/11/15.
 */
module.exports = app => {

    const { STRING, INTEGER, TEXT } = app.Sequelize

    const Music = app.model.define('singer',
        {
            id: {type: INTEGER, primaryKey: true, autoIncrement: true},
            song_name: STRING(255),
            album_mid: STRING(255),
            album_name: STRING(255),
            singer_mid: STRING(255),
            singer_name: STRING(255),
            song_mid: STRING(255),
            song_url: STRING(255),
            my_song_url: STRING(255),
            song_info: TEXT,
            state: INTEGER
        },
        {
            freezeTableName: true, // Model 对应的表名将与model名相同
            timestamps: false

        }
    )
    return Music
}